<template>
  <div class="login-container tech-page">
    <!-- 背景装饰 -->
    <div class="background-decorations">
      <dv-decoration-1 class="bg-decoration bg-decoration-1" />
      <dv-decoration-2 class="bg-decoration bg-decoration-2" />
      <dv-decoration-5 class="bg-decoration bg-decoration-3" />
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
      <!-- 左侧信息面板 -->
      <div class="info-panel">
        <dv-border-box-8 class="info-box">
          <div class="system-info">
            <div class="logo-section">
              <img src="../../assets/logo.svg" alt="Logo" class="system-logo" />
              <div class="logo-glow"></div>
            </div>
            <h1 class="system-title">简历制作小程序</h1>
            <h2 class="system-subtitle">后台管理系统</h2>
            <dv-decoration-3 class="title-decoration" />
            <div class="system-features">
              <div class="feature-item">
                <dv-decoration-12 class="feature-icon" />
                <span>智能简历生成</span>
              </div>
              <div class="feature-item">
                <dv-decoration-12 class="feature-icon" />
                <span>模板管理系统</span>
              </div>
              <div class="feature-item">
                <dv-decoration-12 class="feature-icon" />
                <span>用户数据分析</span>
              </div>
            </div>
          </div>
        </dv-border-box-8>
      </div>

      <!-- 右侧登录面板 -->
      <div class="login-panel">
        <dv-border-box-1 class="login-box">
          <div class="login-content">
            <div class="login-header">
              <h3 class="login-title">管理员登录</h3>
              <dv-decoration-10 class="header-decoration" />
            </div>

            <el-form
              ref="loginFormRef"
              :model="loginForm"
              :rules="loginRules"
              class="login-form"
              @keyup.enter="handleLogin"
              label-position="top"
            >
              <el-form-item prop="username" class="form-item">
                <el-input
                  v-model="loginForm.username"
                  placeholder="请输入用户名"
                  prefix-icon="User"
                  clearable
                  size="large"
                  class="tech-input"
                />
              </el-form-item>

              <el-form-item prop="password" class="form-item">
                <el-input
                  v-model="loginForm.password"
                  type="password"
                  placeholder="请输入密码"
                  prefix-icon="Lock"
                  show-password
                  clearable
                  size="large"
                  class="tech-input"
                />
              </el-form-item>

              <div class="form-options">
                <el-checkbox v-model="loginForm.remember" class="tech-checkbox">
                  记住登录
                </el-checkbox>
                <!-- <el-link type="primary" :underline="false" class="forgot-link">
                  忘记密码？
                </el-link> -->
              </div>

              <el-button
                type="primary"
                :loading="loading"
                class="login-button"
                @click="handleLogin"
                size="large"
              >
                {{ loading ? "登录中..." : "立即登录" }}
              </el-button>

              <!-- 登录凭据提示 -->
              <div class="login-credentials-tip">
                <div class="tip-title">默认登录凭据</div>
                <div class="tip-content">
                  <div class="tip-item">
                    <span class="tip-label">用户名:</span>
                    <span class="tip-value">admin</span>
                  </div>
                  <div class="tip-item">
                    <span class="tip-label">密码:</span>
                    <span class="tip-value">12345678</span>
                  </div>
                </div>
              </div>
            </el-form>

            <div class="login-footer">
              <dv-decoration-3 class="footer-decoration" />
              <p class="version-info">Version 1.0.0</p>
            </div>
          </div>
        </dv-border-box-1>
      </div>
    </div>

    <!-- 动态背景效果 -->
    <div class="dynamic-background">
      <div class="grid-pattern"></div>
      <div class="scan-lines"></div>
      <div class="floating-dots">
        <div class="dot" v-for="i in 15" :key="i"></div>
      </div>
    </div>
    <!-- DataV风格页脚 -->
    <dv-border-box-8 class="footer-datav">
      <div class="footer-content">
        <a
          href="https://mc.tencent.com/HRVjVcS5"
          target="_blank"
          class="footer-link"
          >Made in CodeBuddy</a
        >
        <span class="footer-divider">|</span>
        <a
          href="https://docs.cloudbase.net/ai/cloudbase-ai-toolkit/?from=csdn-hackathon-2025"
          target="_blank"
          class="footer-link"
          >Powered by CloudBase</a
        >
      </div>
    </dv-border-box-8>
  </div>
</template>

<script setup>
import { ref, reactive, onMounted } from "vue";
import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import {
  app,
  ensureLogin,
  checkEnvironment,
  isValidEnvId,
} from "../../utils/cloudbase";

// export default {
//   name: 'Login',
//   setup() {
const router = useRouter();
const loginFormRef = ref(null);
const loading = ref(false);
const cloudbaseStatus = ref({
  connected: false,
  envId: isValidEnvId ? "your-env-id" : null,
});
const loginForm = reactive({
  username: "",
  password: "",
  remember: false,
});

const loginRules = {
  username: [
    { required: true, message: "请输入用户名", trigger: "blur" },
    { min: 3, message: "用户名长度不能少于3个字符", trigger: "blur" },
  ],
  password: [
    { required: true, message: "请输入密码", trigger: "blur" },
    { min: 6, message: "密码长度不能少于6个字符", trigger: "blur" },
  ],
};

// 调用云函数验证用户
const validateUser = async (username, password) => {
  try {
    const result = await app.callFunction({
      name: "admin-user-management",
      data: {
        action: "login",
        data: {
          username: username,
          password: password,
        },
      },
    });

    return result.result;
  } catch (error) {
    console.error("调用云函数失败:", error);
    throw new Error("系统错误，请稍后重试");
  }
};

const handleLogin = async () => {
  if (!loginFormRef.value) return;
  try {
    const valid = await loginFormRef.value.validate();
    if (!valid) return;
  } catch (error) {
    return;
  }

  loading.value = true;

  try {
    // 调用云函数验证用户
    const result = await validateUser(loginForm.username, loginForm.password);

    if (result.success) {
      // 用户验证成功
      const userInfo = result.data;

      // 保存用户信息到本地存储
      localStorage.setItem("token", userInfo.token || "admin-token");
      localStorage.setItem("username", userInfo.username);
      localStorage.setItem("userRole", userInfo.role || "admin");
      localStorage.setItem("userId", userInfo.id || userInfo._id);

      // 如果选择记住登录状态，设置更长的过期时间
      if (loginForm.remember) {
        const expireTime = new Date().getTime() + 7 * 24 * 60 * 60 * 1000; // 7天
        localStorage.setItem("loginExpire", expireTime.toString());
      }

      ElMessage.success({
        message: `欢迎回来，${userInfo.username}！`,
        duration: 2000,
      });

      // 延迟跳转，让用户看到成功消息
      setTimeout(() => {
        router.push("/");
      }, 1000);
    } else {
      // 用户验证失败
      const errorMessage = result.message || "登录失败";

      if (
        errorMessage.includes("用户不存在") ||
        errorMessage.includes("用户未找到")
      ) {
        // 用户不存在的特殊处理
        ElMessageBox.alert(
          "用户不存在，请联系管理员添加您的账户信息。",
          "登录失败",
          {
            confirmButtonText: "确定",
            type: "warning",
            customClass: "datav-message-box",
            distinguishCancelAndClose: true,
            beforeClose: (action, instance, done) => {
              if (action === "confirm") {
                instance.confirmButtonLoading = true;
                instance.confirmButtonText = "处理中...";
                setTimeout(() => {
                  instance.confirmButtonLoading = false;
                  done();
                }, 300);
              } else {
                done();
              }
            },
          }
        );
      } else if (
        errorMessage.includes("密码错误") ||
        errorMessage.includes("密码不正确")
      ) {
        ElMessage.error({
          message: "密码错误，请检查后重试",
          duration: 3000,
        });
      } else if (
        errorMessage.includes("账户被禁用") ||
        errorMessage.includes("账户已锁定")
      ) {
        ElMessageBox.alert(
          "您的账户已被禁用，请联系管理员解锁。",
          "账户状态异常",
          {
            confirmButtonText: "确定",
            type: "error",
            customClass: "datav-message-box",
            distinguishCancelAndClose: true,
            beforeClose: (action, instance, done) => {
              if (action === "confirm") {
                instance.confirmButtonLoading = true;
                instance.confirmButtonText = "处理中...";
                setTimeout(() => {
                  instance.confirmButtonLoading = false;
                  done();
                }, 300);
              } else {
                done();
              }
            },
          }
        );
      } else {
        ElMessage.error({
          message: errorMessage,
          duration: 3000,
        });
      }
    }
  } catch (error) {
    console.error("登录错误:", error);
    ElMessage.error({
      message: error.message || "登录失败，请检查网络连接后重试",
      duration: 3000,
    });
  } finally {
    loading.value = false;
  }
};
// 组件挂载时检查云开发状态
onMounted(async () => {
  // 检查环境配置
  const envValid = checkEnvironment();
  cloudbaseStatus.value.connected = envValid;

  if (envValid) {
    // 尝试获取登录状态
    try {
      const state = await ensureLogin();
      loginState.value = state;
    } catch (error) {
      console.warn("初始化登录状态失败:", error);
    }
  }
});
//     return {
//       loginFormRef,
//       loginForm,
//       loginRules,
//       loading,
//       handleLogin
//     }
//   }
// }
</script>

<style scoped>
/* 主容器 */
.login-container {
  height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景装饰 */
.background-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-decoration {
  position: absolute;
  opacity: 0.6;
}

.bg-decoration-1 {
  top: 5%;
  left: 10%;
  width: 200px;
  height: 60px;
}

.bg-decoration-2 {
  bottom: 10%;
  right: 15%;
  width: 150px;
  height: 40px;
}

.bg-decoration-3 {
  top: 50%;
  right: 5%;
  width: 80px;
  height: 200px;
  transform: translateY(-50%);
}

/* 主要内容区域 */
.main-content {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  z-index: 10;
  position: relative;
  gap: 40px;
  padding: 0 40px;
}

/* 左侧信息面板 */
.info-panel {
  flex: 1.2;
  display: flex;
  align-items: center;
}

.info-box {
  width: 100%;
  height: 100%;
  padding: 60px 50px;
  background: rgba(0, 20, 40, 0.4);
  backdrop-filter: blur(10px);
}

.system-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-section {
  position: relative;
  margin-bottom: 40px;
}

.system-logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(0, 192, 255, 0.8));
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(0, 192, 255, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoGlow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.system-title {
  font-size: 36px;
  color: #00c0ff;
  margin: 0 0 12px 0;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 192, 255, 0.8);
  letter-spacing: 3px;
}

.system-subtitle {
  font-size: 20px;
  color: #66d9ff;
  margin: 0 0 30px 0;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(102, 217, 255, 0.6);
  letter-spacing: 2px;
}

.title-decoration {
  width: 200px;
  height: 30px;
  margin: 0 auto 40px auto;
}

.system-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  font-size: 16px;
  opacity: 0.9;
}

.feature-icon {
  width: 30px;
  height: 30px;
}

/* 右侧登录面板 */
.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
}

.login-box {
  width: 100%;
  height: 100%;
  background: rgba(0, 30, 60, 0.3);
  backdrop-filter: blur(15px);
}

.login-content {
  padding: 60px 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 50px;
}

.login-title {
  font-size: 28px;
  color: #00c0ff;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(0, 192, 255, 0.8);
  letter-spacing: 2px;
}

.header-decoration {
  width: 150px;
  height: 30px;
  margin: 0 auto;
}

/* 表单样式 */
.login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-item {
  margin-bottom: 30px;
}

.tech-input {
  --el-input-bg-color: rgba(0, 40, 80, 0.4);
  --el-input-border-color: rgba(0, 192, 255, 0.3);
  --el-input-hover-border-color: rgba(0, 192, 255, 0.6);
  --el-input-focus-border-color: #00c0ff;
  --el-input-text-color: #ffffff;
  --el-input-placeholder-color: rgba(255, 255, 255, 0.6);
}

.tech-input :deep(.el-input__wrapper) {
  background-color: rgba(0, 40, 80, 0.4);
  border: 1px solid rgba(0, 192, 255, 0.3);
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 50px;
}

.tech-input :deep(.el-input__wrapper:hover) {
  border-color: rgba(0, 192, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 192, 255, 0.3);
}

.tech-input :deep(.el-input__wrapper.is-focus) {
  border-color: #00c0ff;
  box-shadow: 0 0 12px rgba(0, 192, 255, 0.5);
}

.tech-input :deep(.el-input__inner) {
  color: #ffffff;
  font-size: 16px;
  height: 48px;
}

.tech-input :deep(.el-input__prefix-inner) {
  color: rgba(0, 192, 255, 0.8);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.tech-checkbox {
  --el-checkbox-text-color: #ffffff;
  --el-checkbox-input-border-color: rgba(0, 192, 255, 0.5);
  --el-checkbox-checked-bg-color: #00c0ff;
  --el-checkbox-checked-input-border-color: #00c0ff;
}

.tech-checkbox :deep(.el-checkbox__label) {
  color: #ffffff;
  font-size: 14px;
}

.forgot-link {
  --el-link-text-color: #66d9ff;
  --el-link-hover-text-color: #00c0ff;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(102, 217, 255, 0.5);
}

.login-button {
  width: 100%;
  height: 55px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  background: linear-gradient(135deg, #00c0ff 0%, #0080cc 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 192, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 192, 255, 0.6);
}

.login-button:active {
  transform: translateY(0);
}

.login-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* 登录底部 */
.login-footer {
  text-align: center;
  margin-top: 30px;
}

.footer-decoration {
  width: 100px;
  height: 20px;
  margin: 0 auto 15px auto;
}

.version-info {
  color: #66d9ff;
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
}

/* 动态背景效果 */
.dynamic-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 192, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 192, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.scan-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.scan-lines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 192, 255, 0.8),
    transparent
  );
  animation: scanVertical 6s linear infinite;
}

.scan-lines::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    0deg,
    transparent,
    rgba(0, 192, 255, 0.6),
    transparent
  );
  animation: scanHorizontal 8s linear infinite;
}

@keyframes scanVertical {
  0% {
    top: 0;
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    top: 100%;
    opacity: 1;
  }
}

@keyframes scanHorizontal {
  0% {
    left: 0;
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    left: 100%;
    opacity: 1;
  }
}

.floating-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 192, 255, 0.7);
  border-radius: 50%;
  animation: dotFloat 8s linear infinite;
}

.dot:nth-child(odd) {
  animation-delay: -4s;
  background: rgba(102, 217, 255, 0.5);
}

.dot:nth-child(1) {
  left: 5%;
  animation-duration: 10s;
}

.dot:nth-child(2) {
  left: 15%;
  animation-duration: 8s;
}

.dot:nth-child(3) {
  left: 25%;
  animation-duration: 12s;
}

.dot:nth-child(4) {
  left: 35%;
  animation-duration: 9s;
}

.dot:nth-child(5) {
  left: 45%;
  animation-duration: 11s;
}

.dot:nth-child(6) {
  left: 55%;
  animation-duration: 7s;
}

.dot:nth-child(7) {
  left: 65%;
  animation-duration: 10s;
}

.dot:nth-child(8) {
  left: 75%;
  animation-duration: 8s;
}

.dot:nth-child(9) {
  left: 85%;
  animation-duration: 9s;
}

.dot:nth-child(10) {
  left: 95%;
  animation-duration: 11s;
}

.dot:nth-child(11) {
  left: 10%;
  animation-duration: 7s;
}

.dot:nth-child(12) {
  left: 30%;
  animation-duration: 9s;
}

.dot:nth-child(13) {
  left: 50%;
  animation-duration: 8s;
}

.dot:nth-child(14) {
  left: 70%;
  animation-duration: 10s;
}

.dot:nth-child(15) {
  left: 90%;
  animation-duration: 12s;
}

@keyframes dotFloat {
  0% {
    top: 100%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: -5%;
    opacity: 0;
  }
}

/* 自定义消息框样式 */
:deep(.tech-message-box) {
  --el-messagebox-bg-color: rgba(0, 20, 40, 0.95);
  --el-messagebox-border-color: rgba(0, 192, 255, 0.3);
  --el-messagebox-title-color: #00c0ff;
  --el-messagebox-content-color: #ffffff;
}

:deep(.tech-message-box .el-message-box__header) {
  border-bottom: 1px solid rgba(0, 192, 255, 0.2);
}

:deep(.tech-message-box .el-message-box__title) {
  color: #00c0ff;
  text-shadow: 0 0 5px rgba(0, 192, 255, 0.5);
}

:deep(.tech-message-box .el-message-box__content) {
  color: #ffffff;
}

:deep(.tech-message-box .el-button--primary) {
  background: linear-gradient(135deg, #00c0ff 0%, #0080cc 100%);
  border-color: #00c0ff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    height: auto;
    max-width: 500px;
    gap: 30px;
  }

  .info-panel {
    flex: none;
    height: 300px;
  }

  .info-box {
    padding: 40px 30px;
  }

  .system-title {
    font-size: 28px;
  }

  .system-subtitle {
    font-size: 16px;
  }

  .system-features {
    display: none;
  }

  .login-panel {
    flex: none;
    height: 450px;
  }

  .login-content {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 20px;
    max-width: 400px;
  }

  .system-logo {
    height: 80px;
  }

  .system-title {
    font-size: 24px;
  }

  .system-subtitle {
    font-size: 14px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-content {
    padding: 30px 25px;
  }

  .bg-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 15px;
    max-width: 350px;
  }

  .info-box,
  .login-content {
    padding: 25px 20px;
  }

  .system-title {
    font-size: 20px;
  }

  .login-title {
    font-size: 20px;
  }

  .login-button {
    height: 50px;
    font-size: 16px;
  }
}

/* DataV风格页脚 */
.footer-datav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 40px;
  z-index: 100;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
}

.footer-link {
  color: #66d9ff;
  font-size: 14px;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(102, 217, 255, 0.5);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #00c0ff;
  text-shadow: 0 0 10px rgba(0, 192, 255, 0.8);
}

.footer-divider {
  margin: 0 10px;
  color: rgba(102, 217, 255, 0.6);
}

/* 登录凭据提示样式 */
.login-credentials-tip {
  margin-top: 15px;
  padding: 10px;
  background: rgba(0, 40, 80, 0.4);
  border: 1px solid rgba(0, 192, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 192, 255, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.tip-title {
  color: #00c0ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.tip-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tip-item {
  display: flex;
  align-items: center;
}

.tip-label {
  color: #66d9ff;
  font-size: 12px;
  margin-right: 6px;
  min-width: 50px;
}

.tip-value {
  color: #ffffff;
  font-size: 12px;
  background: rgba(0, 60, 100, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}
</style>
